package cn.org.rookie.jeesdp.system.mapper;

import cn.org.rookie.jeesdp.mapper.BaseMapper;
import cn.org.rookie.jeesdp.system.entity.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MenuMapper extends BaseMapper<Menu, String> {

    List<Menu> selectMenuByPid(@Param("pid") String pid);

    List<Menu> selectMenuByUserIdAndPid(@Param("userId") String userId, @Param("pid") String pid);
}
